Hi,
I had the same problem on an openSUSE 42.1 machine with Qt Creator 3.2.2 (QT 4.8.6) when installing nvidia video driver. The symptoms I recognized:
---Programs compile within Qt Creator
---Programs started outside Qt Creator runs without any problem
---Programs started inside Qt Creator (by pushing the run button) start, but do not work properly (most of the time nothing or a frozen background is shown) with the following terminal output ("Draw method called" is printed by the program when the draw method is called)
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error: GLXBadContext 169
Extension: 154 (Uknown extension)
Minor opcode: 6 (Unknown request)
Resource id: 0xba00010
X Error: BadValue (integer parameter out of range for operation) 2
Extension: 154 (Uknown extension)
Minor opcode: 3 (Unknown request)
Resource id: 0x0
QGLContext::makeCurrent(): Failed.
Draw Method called
X Error: GLXBadDrawable 171
Extension: 154 (Uknown extension)
Minor opcode: 11 (Unknown request)
Resource id: 0xba00012
X Error: GLXBadContext 169
Extension: 154 (Uknown extension)
Minor opcode: 5 (Unknown request)
Resource id: 0xba00010
X Error: 0 0
Extension: 154 (Uknown extension)
Minor opcode: 26 (Unknown request)
Resource id: 0x0
QGLContext::makeCurrent(): Failed.
Draw Method called
...
I found a work around by adding a new run configuration of type user defined executable file with the binary file of the program as executable file.
If anyone could figure out what is going on there it would be great to find a fix for it.
Kind regards
noone